﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SPNetworkTopology.ExternalWindows.ViewModel
{
    class SPListSummaryViewModel : DataLinkingViewModelBase
    {
        /// <summary>
        /// Selected SharePoint list Columns
        /// </summary>
        public List<string> SPColumnCollection
        {
            get
            {
                return this.DataLinking.SelectedColumns;
            }
        }

        /// <summary>
        /// Sharepoint site name
        /// </summary>
        public string SiteName
        {
            get
            {
                return this.DataLinking.SPSiteName;
            }
        }

        /// <summary>
        /// Sharepoint List name
        /// </summary>
        public string ListName
        {
            get
            {
                return this.DataLinking.SPListName;
            }
        }

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="dataLinking">DataLinking Object</param>
        public SPListSummaryViewModel(DataLinking dataLinking)
            : base(dataLinking)
        {
            //Intentionally left blank
        }

        /// <summary>
        /// Display Name
        /// </summary>
        public override string DisplayName
        {
            get { return SPNetworkTopologyResource.SummaryHeader; }
        }

        /// <summary>
        /// Finish button enabled value
        /// </summary>
        /// <returns></returns>
        internal override bool IsValid()
        {
            return true;
        }
    }
}
